package Object;

public class Test {
    public static void main(String[] args) {
        Animal animal = new Cat();
        animal.bark();
        animal = new Dog();
        animal.bark();

    }

}
